<?php
/**
 * Created by PhpStorm.
 * User: xionghao
 * Date: 2017/10/17
 * Time: 16:22
 */

namespace app\meeting\validate;


use think\Validate;

class MeetValidate extends Validate
{

    protected $rule = [
        'name'=>'require',
        'type' => 'require',
        'start_time' => 'require',
        'end_time' => 'require',
        'register_end_time' => 'require',
        'signed_time' => 'require',
        'basic_info' => 'require',
        'unit_zb' => 'require',
        'unit_zengb' => 'require',
        'address' => 'require',
        'contact_info'=> 'require',
        'province' => 'require',
    ];

    protected $message = [
        'name.require'=>'名称不能为空',
        'type.require'=>'类型不能为空',
        'start_time.require'=>'开始时间不能为空',
        'end_time.require'=>'结束时间不能为空',
        'signed_time.require'=>'签到时间不能为空',
        'register_end_time.require'=>'晚上报名截止时间不能为空',
        'basic_info.require'=>'基本信息不能为空',
        'unit_zb.require'=>'主办单位不能为空',
        'unit_zengb.require'=>'承办单位不能为空',
        'address.require'=>'会议地址不能为空',
        'contact_info.require'=>'联系我们不能为空',

    ];


}